package com.rajesh.messageservice.bean;

import net.sqlcipher.Cursor;

public class AppMsgAttach extends WxDbBean {

    private String mediaSvrId;
    private String fileFullPath;
    private String createTime;

    public String getMediaSvrId() {
        return mediaSvrId;
    }

    public void setMediaSvrId(String mediaSvrId) {
        this.mediaSvrId = mediaSvrId;
    }

    public String getFileFullPath() {
        return fileFullPath;
    }

    public void setFileFullPath(String fileFullPath) {
        this.fileFullPath = fileFullPath;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public AppMsgAttach() {
    }

    public AppMsgAttach(String mediaSvrId, String fileFullPath, String createTime) {
        this.mediaSvrId = mediaSvrId;
        this.fileFullPath = fileFullPath;
        this.createTime = createTime;
    }

    @Override
    public WxDbBean translate(Cursor cursor) {
        if(cursor != null){
            this.mediaSvrId = cursor.getString(cursor.getColumnIndex("mediaSvrId"));
            this.fileFullPath = cursor.getString(cursor.getColumnIndex("fileFullPath"));
            this.createTime = cursor.getString(cursor.getColumnIndex("createTime"));
        }
        return this;
    }
}
